
//
//  ScaleImageView.m
//  tableView头部视图缩放
//
//  Created by MyMac on 15/7/21.
//  Copyright (c) 2015年 MyMac. All rights reserved.
//

#import "ScaleImageView.h"
@interface ScaleImageView()<UIScrollViewDelegate>


@end
@implementation ScaleImageView

-(instancetype)initWithFrame:(CGRect)frame
{
    if([super initWithFrame:frame]){
    self.backScroll=[[UIScrollView alloc]initWithFrame:self.bounds];
    [self addSubview:self.backScroll];
    self.backScroll.delegate=self;

    _imageView=[[UIImageView alloc]initWithFrame:self.bounds];
    _imageView.backgroundColor=[UIColor whiteColor];
    _imageView.userInteractionEnabled=YES;
    //self.backScroll.contentSize=CGSizeMake(self.bounds.size.width, 600);
    [self.backScroll addSubview:_imageView];
    //_imageView.image=self.image;
    }
    return self;

}
- (void)scrollViewDidScroll:(UIScrollView *)scrollView;
{

    NSLog(@"＊＊＊＊＊＊＊");

}
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView;
{
    NSLog(@"缩放");
    return self.imageView;


}
@end
